package com.softeem.set;

public class Student implements Comparable<Student>{

	private int age;
	
	public Student(int age) {
		this.age = age;
	}
	
	@Override
	public int compareTo(Student o) {
		return this.age - o.age;
	}

	@Override
	public String toString() {
		return "Student [age=" + age + "]";
	}

}
